package cn.engage.user.mapper;


import cn.engage.basic.mapper.BaseMapper;
import cn.engage.user.domain.Logininfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2022-10-19
 */
@Repository
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo findByIdOne(Long id);

    Logininfo findByPhone(String phone);

    Logininfo getByEmail(String mail);
    // 登录从数据库查询是否有该账号
    Logininfo getByLogin(@Param("username") String username,@Param("type") Integer type);
}
